package com.shop.service.impl;

import com.shop.dao.IProductDao;
import com.shop.dao.impl.ProductDaoImpl;
import com.shop.entity.Product;
import com.shop.service.IProductsService;

/**
 * @author: clown
 * @date 2020/7/15 17:11
 */
public class ProductsServiceImpl implements IProductsService {
    private IProductDao productDao=new ProductDaoImpl();
    @Override
    public Product findProduct(int pid) {

        return productDao.findProductByPid(pid);
    }
}
